/**
 * @filename:Const 2018年01月01日
 * @project 微面    边鹏  V1.0
 * Copyright(c) 2017 BianP Co. Ltd. 
 * All right reserved. 
 */
package com.lazy.develop.service;

import java.util.List;

import com.lazy.develop.generator.entity.User;
import com.lazy.develop.model.Record;

/**
 * @explain 逻辑层，接口类(用户) 
 * @author  BianP 
 * @class    UserService.java  
 */
public interface UserService {
	
	/**
	 * @explain 查找对象
	 * @param   id
	 * @return  User
	 * @throws  Exception
	 */
	public User selectByPrimaryKey(Long id);
	
	/**
	 * @explain 保存对象(添加)
	 * @param   User
	 * @return  int
	 * @throws  Exception
	 */
	public int insertSelective(User user);

	/**
	 * @explain 有选择性：修改对象
	 * @param   User
	 * @return  int
	 * @throws  Exception
	 */
	public int updateByPrimaryKeySelective(User user);

	/**
	 * @explain 有选择性：全修改
	 * @param   User
	 * @return  int
	 * @throws  Exception
	 */
	public int updateByPrimaryKey(User user);
	
	/**
	 * @explain 删除对象 
	 * @param   id
	 * @return  int
	 * @throws  Exception
	 */
	public int deleteByPrimaryKey(Long id);
	
	/**
	 * @explain 查询指定时间内，指定角色以下的用户
	 * @param   record
	 * @return  List<Record>
	 * @throws  Exception
	 */
	public List<Record> getUserRolePage(Record record);

	/**
	 * @explain 查询所有用户
	 * @param   record
	 * @return  List<User>
	 * @throws  Exception
	 */
	public List<User> getUserAll();
}
